package com.dazhi.boot.context.event;

import com.dazhi.boot.SpringApplication;
import org.springframework.context.ConfigurableApplicationContext;
public class ApplicationPreparedEvent extends SpringApplicationEvent{
    private final ConfigurableApplicationContext context;

    public ApplicationPreparedEvent(SpringApplication application, String[] args,
                                    ConfigurableApplicationContext context) {
        super(application, args);
        this.context = context;
    }
    public ConfigurableApplicationContext getApplicationContext() {
        return this.context;
    }
}
